<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>用户注册</title>
  <style>
    body {
      font-family: Arial, sans - serif;
      background-color: #f4f4f4;
    }

   .register - container {
      width: 300px;
      margin: 50px auto;
      background-color: #fff;
      padding: 20px;
      border - radius: 5px;
      box - shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }

    label {
      display: block;
      margin - bottom: 5px;
    }

    input {
      width: 100%;
      padding: 10px;
      margin - bottom: 15px;
      border: 1px solid #ccc;
      border - radius: 3px;
    }

    button {
      background-color: #007BFF;
      color: #fff;
      padding: 10px 15px;
      border: none;
      border - radius: 3px;
      cursor: pointer;
    }

    button:hover {
      background-color: #0056b3;
    }
  </style>
</head>

<body>
  <div class="register - container">
    <h2>用户注册</h2>
    <form action="#" method="post">
      <label for="username">用户名</label>
      <input type="text" id="username" placeholder="请输入用户名">
      <label for="email">邮箱</label>
      <input type="email" id="email" placeholder="请输入邮箱">
      <label for="password">密码</label>
      <input type="password" id="password" placeholder="请输入密码">
      <label for="confirm - password">确认密码</label>
      <input type="password" id="confirm - password" placeholder="请再次输入密码">
      <button type="submit">注册</button>
    </form>
  </div>
</body>

</html>